package com.yxt.qmgf.number.vo;

public class GameState {
    private int[][] board;
    private int[][] solution;
    private int timeElapsed;
    private int mistakes;
    private int difficulty; // 新增难度属性

    public GameState(int[][] board, int[][] solution, int difficulty) {
        this.board = board;
        this.solution = solution;
        this.timeElapsed = 0;
        this.mistakes = 0;
        this.difficulty = difficulty; // 设置难度
    }

    // 新增getter方法
    public int getDifficulty() {
        return difficulty;
    }

    // 其他原有方法保持不变...
    public int[][] getBoard() { return board; }
    public int[][] getSolution() { return solution; }
    public int getTimeElapsed() { return timeElapsed; }
    public int getMistakes() { return mistakes; }
    public void setBoard(int[][] board) { this.board = board; }
    public void incrementTime() { timeElapsed++; }
    public void incrementMistakes() { mistakes++; }
}